package utility;

public class Triplet {

	private static final int ONE_THOUSAND = 1000;

	private int a;
	private int b;
	private int c;

	public Triplet(int a2, int b2, int c2) {
		a = a2;
		b = b2;
		c = c2;
	}

	public Triplet() {
		a = 0;
		b = 0;
		c = 0;
	}

	public boolean isPhytagTriplet() {

		long aSquared = (long) Math.pow(a, 2);
		long bSquared = (long) Math.pow(b, 2);
		long cSquared = (long) Math.pow(c, 2);

		return aSquared + bSquared == cSquared;
	}

	public boolean sumsUpTo1000() {
		return (a + b + c == ONE_THOUSAND);
	}

	public int getProduct() {
		return a * b * c;
	}
}
